home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / stdlib / RCS / abort.c,v < prev    next >
Encoding:
Text File  |  1991-12-03  |  2.8 KB  |  152 lines

  1. head     1.4;
  2. branch   ;
  3. access   ;
  4. symbols  sprited:1.4.1;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.4
  10. date     90.09.10.17.08.38;  author rab;  state Exp;
  11. branches 1.4.1.1;
  12. next     1.3;
  13.  
  14. 1.3
  15. date     89.03.22.00.46.46;  author rab;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     88.07.11.09.17.37;  author ouster;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     88.05.21.17.30.58;  author ouster;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29. 1.4.1.1
  30. date     91.12.03.12.04.40;  author kupfer;  state Exp;
  31. branches ;
  32. next     ;
  33.  
  34.  
  35. desc
  36. @@
  37.  
  38.  
  39. 1.4
  40. log
  41. @Changed abort to give a SIG_ILL_INST instead of a SIG_DEBUG.
  42. @
  43. text
  44. @/* 
  45.  * abort.c --
  46.  *
  47.  *    Source code for the "abort" library procedure.
  48.  *
  49.  * Copyright 1988 Regents of the University of California
  50.  * Permission to use, copy, modify, and distribute this
  51.  * software and its documentation for any purpose and without
  52.  * fee is hereby granted, provided that the above copyright
  53.  * notice appear in all copies.  The University of California
  54.  * makes no representations about the suitability of this
  55.  * software for any purpose.  It is provided "as is" without
  56.  * express or implied warranty.
  57.  */
  58.  
  59. #ifndef lint
  60. static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/abort.c,v 1.3 89/03/22 00:46:46 rab Exp Locker: rab $ SPRITE (Berkeley)";
  61. #endif not lint
  62.  
  63. #include <sprite.h>
  64. #include <stdlib.h>
  65. #include <proc.h>
  66. #include <sig.h>
  67.  
  68. /*
  69.  *----------------------------------------------------------------------
  70.  *
  71.  * abort --
  72.  *
  73.  *    Cause abnormal termination of the process.  For now, this
  74.  *    puts the process into the debugger.
  75.  *
  76.  * Results:
  77.  *    None.
  78.  *
  79.  * Side effects:
  80.  *    The process drops into the debugger.
  81.  *
  82.  *----------------------------------------------------------------------
  83.  */
  84.  
  85. void
  86. abort()
  87. {
  88.     extern void _cleanup();
  89.  
  90.     _cleanup();
  91.     Sig_SetHoldMask(0, 0);
  92.     Sig_Send(SIG_ILL_INST, PROC_MY_PID, FALSE);
  93.     _exit(1);                /* Never return to caller, even
  94.                      * if the debugger lets us continue. */
  95. }
  96. @
  97.  
  98.  
  99. 1.4.1.1
  100. log
  101. @Initial branch for Sprite server.
  102. @
  103. text
  104. @d17 1
  105. a17 1
  106. static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/abort.c,v 1.4 90/09/10 17:08:38 rab Exp $ SPRITE (Berkeley)";
  107. @
  108.  
  109.  
  110. 1.3
  111. log
  112. @*** empty log message ***
  113. @
  114. text
  115. @d17 1
  116. a17 1
  117. static char rcsid[] = "$Header: /sprite/src/lib/c/stdlib/RCS/abort.c,v 1.2 88/07/11 09:17:37 ouster Exp Locker: rab $ SPRITE (Berkeley)";
  118. d46 1
  119. a46 1
  120.     
  121. d49 1
  122. a49 1
  123.     Sig_Send(SIG_DEBUG, PROC_MY_PID, FALSE);
  124. d51 1
  125. a51 1
  126.                          * if the debugger lets us continue. */
  127. @
  128.  
  129.  
  130. 1.2
  131. log
  132. @Be sure to call _cleanup to flush I/O streams.
  133. @
  134. text
  135. @d17 1
  136. a17 1
  137. static char rcsid[] = "$Header: abort.c,v 1.1 88/05/21 17:30:58 ouster Exp $ SPRITE (Berkeley)";
  138. d21 1
  139. @
  140.  
  141.  
  142. 1.1
  143. log
  144. @Initial revision
  145. @
  146. text
  147. @d17 1
  148. a17 1
  149. static char rcsid[] = "$Header: proto.c,v 1.2 88/03/11 08:39:08 ouster Exp $ SPRITE (Berkeley)";
  150. d44 3
  151. @
  152.